﻿@model ViewModels.Shared.PhoneModel

<form method="post" action="/api/LogOn/_SMS" zyf-logon-form>
    <partial name="../Shared/_BySMS">
        <partial name="../LogOn/_Button">
</form>

<script>

    $('[zyf-logon-form]').submit(function (event) {
        formSubmit(event, {
            success: function (data) {
                location.reload();
            },
            failed: function () {
                initCaptcha();
            }
        })
    });

    function checkPhoneNumber(data) {
        if (data) {
            getNumberErrorMessage().text('* 手机号码尚未注册')
                .addClass('field-validation-error')
                .show();
        } else { //后续要检查，不能省略
            getNumberErrorMessage().text('').hide();
        }
    }
</script>